package com.ruoyi.carShopService.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车型对象 car_type
 * 
 * @author ruoyi
 * @date 2024-09-12
 */
public class CarType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 所属品牌ID */
    @Excel(name = "所属品牌ID")
    private Long carBid;

    /** 车型 */
    @Excel(name = "车型")
    private String carName;

    /** 颜色 */
    @Excel(name = "颜色")
    private String carColor;

    /** 图片 */
    @Excel(name = "图片")
    private String carImg;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Long carStatus;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarBid(Long carBid) 
    {
        this.carBid = carBid;
    }

    public Long getCarBid() 
    {
        return carBid;
    }
    public void setCarName(String carName) 
    {
        this.carName = carName;
    }

    public String getCarName() 
    {
        return carName;
    }
    public void setCarColor(String carColor) 
    {
        this.carColor = carColor;
    }

    public String getCarColor() 
    {
        return carColor;
    }
    public void setCarImg(String carImg) 
    {
        this.carImg = carImg;
    }

    public String getCarImg() 
    {
        return carImg;
    }
    public void setCarStatus(Long carStatus) 
    {
        this.carStatus = carStatus;
    }

    public Long getCarStatus() 
    {
        return carStatus;
    }
    public void setDateTime(Date dateTime) 
    {
        this.dateTime = dateTime;
    }

    public Date getDateTime() 
    {
        return dateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carBid", getCarBid())
            .append("carName", getCarName())
            .append("carColor", getCarColor())
            .append("carImg", getCarImg())
            .append("carStatus", getCarStatus())
            .append("createTime", getCreateTime())
            .append("dateTime", getDateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
